<script>
	export default {
		onLaunch: function() {
			this.$socket.initWebIM(this.$ws, true, true)
		},
		onShow: function() {
		    if(this._user_info.id==''){
                this.$u.route({
                    url: 'pages/login/login'
                });
            }
		},
		onHide: function() {
		}
	}
</script>
<style lang="scss">
	@import "uview-ui/index.scss";
	html,body,page{
		background-color: $uni-bg-color-grey;
	}
	.select-hover-class{ //首页导航栏按钮
		background-color: $uni-color-subtitle !important;
	}
	.message-hover-class{ //评论区 点击
		background-color: $uni-bg-color-hover !important;
	}
	.contentType2-hover-class{ //语音信息点击
		background-color: #c7c6c6 !important;
	}
	image{
		will-change: transform;
	}
	.u-actionsheet-cancel,
	.u-action-sheet-itemz{
		font-size: 28rpx !important;
	}
	@import "/components/font/iconfont.css";
</style>
